package com.editor.smsmanager.utils;

import android.database.Cursor;

public class SysDataUtils {

    public static void printCursor(Cursor cursor){
        while (cursor.moveToNext()){
            printCursorColumn(cursor);
        }
    }

    public static void printCursorColumn(Cursor cursor){
        MyLog.D("------------------>Column_"+cursor.getPosition()+"<-------------------");
        for(int i=0; i < cursor.getColumnCount(); i++){
            MyLog.D("ColumnIndex="+i+",name="+cursor.getColumnName(i)+",value="+cursor.getString(i));
        }
        try {
            Thread.sleep(10);
        } catch (InterruptedException interruptedException) {
            interruptedException.printStackTrace();
        }
    }
}
